<?php 
function start_get_url($content){
	preg_match_all('/<cite>(.+?)<\/cite>/s', $content, $rst);
	
	$okay =array();
	foreach ($rst[1] as $value) {
		if(strpos($value, "wp-admin") === false){
			continue;
		}
		$value = trim(strip_tags($value));
		if(substr($value, -9, 8) != "wp-admin")
			continue;
		
		$okay[] = $value;
	}
	return $okay;
}

$result =array();
for ($i = 1; $i <= 9; $i++) {
	$content = file_get_contents("page/{$i}.htm");
	$temp = start_get_url($content);
	$result = array_merge($result, $temp);
//	print_r($result);
}

$result = array_unique($result);
foreach ($result as $value) {
	echo $value."[add]\r\n";
}

//print_r($result);
